package com.tomorrowgamingkids.helloworld;
import android.content.Context;
import android.opengl.GLSurfaceView;

public class OpenGLView extends GLSurfaceView {
	private OpenGLRenderer renderer;

	public OpenGLView(Context context) {
		super(context);
		
		this.setEGLContextClientVersion(2);
		
		renderer = new OpenGLRenderer();
		renderer.screenHeight = this.getHeight();
		renderer.screenWidth = this.getWidth();
		
		this.setRenderer((Renderer)renderer);
		
		this.setRenderMode(RENDERMODE_WHEN_DIRTY);
	}
}